<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/qs/6.12.3/qs.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

</head>

<body>

</body>
<!-- 


编写代码以发送一个POST请求到某个API端点，并在请求体中发送一些数据。打印响应的结果。


-->
<script type="module">
    // 请求基路径
    axios.defaults.baseURL = 'http://192.168.121.41:5000';
    // 请求超时时间
    axios.defaults.timeout = 5000

    axios({
        method: 'POST',
        url: '/users/checkLogin',
        data: Qs.stringify({
            account: 'admin',
            password: 'cd3f0c85b158c08a2b113464991810cf2cdfc387',
        })
    }).then(res => {
        console.log(res);

    }).catch(err => {
        console.log(err);

    })
</script>

</html>